import { h, mergeProps } from 'vue'
import Search from '@/components/Base/Form/Search.vue'
// import { useStore } from 'vuex'

export default {
  name: 'wrap-search',
  props: Search.props,
  emits: Search.emits,
  render(ctx) {
    return h(Search, mergeProps(ctx.$props, {
      onSearch: (e) => {
        console.log(e)
        ctx.$emit('search', e)
      }
    }))
  }
}
